This is trichotillomania.
